import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import layout from "@/layout";
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: '何昱江的个人首页',
      component: layout,
      redirect:'/homePage',
      children:[
        {
          path: '/homePage',
          name:'首页',
          component: () => import('@/views/homePage'),
        },
        {
          path: '/myBaby',
          name:'我的宝',
          component: () => import('@/views/myBaby'),
        },
        {
          path: '/myCat',
          name:'我的猫',
          component: () => import('@/views/myCat'),
        },
        {
          path: '/404',
          name:'正在制作嗷',
          component: () => import('@/views/errorPage/page404'),
        }
      ]
    }
  ]
})
